<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('title', 'TitleController');

    $router->resource('contact', 'ContactController');

    $router->resource('test', 'TestController');

    $router->resource('template', 'MessageTemplateController');

    $router->resource('record', 'RecordController');

    $router->get('getNum', 'IhuyiController@getNum');
    $router->get('addTemplate', 'IhuyiController@addTemplate');
    $router->post('templateStatus', 'IhuyiController@templateStatus');
    $router->get('send', 'IhuyiController@send');
    $router->post('sendStatus', 'IhuyiController@sendStatus');

});
